package com.GDOU.service;

import com.GDOU.bean.Student;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface StudentService {

    //添加学生
    int addStudent(Student student);

    //删除学生
    int deleteStudent(String stuNum);

    //修改学生
    int updateStudent(Student student);

    //查询所有学生
    List<Student> getAllStudent();

    //获取学生的分页信息
    PageInfo<Student> getStudentPage(Integer pageNum);

    //通过姓名查询学生信息
    Student getStudentByName(String stuName);
}
